package user;

import Book.BookList;
import operation.IOperation;

public abstract class User {
    //被protected修饰的成员变量
    //在同一个包中的所有类之间可以被访问
    //子类可以访问父类中的，两者可以不在同一个包
    protected String name;

    public IOperation[] iOperations;

    public User (String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperation(int choice, BookList bookList){
        iOperations[choice].work (bookList);
    }


}